public class E9_2 {
  E9_1 bottom;
  double height;
  void setBottom(E9_1 c){
    bottom=c;
  }
  void setHeight(double h){
    height=h;
  }
  double getVolme(){
    if(bottom==null)
    return -1;
    else
    return bottom.getArea()*height/3.0;
  }
  double getBottomRadius() {
    return bottom.getRadius();
  }
  public void setBottomRadius(double r) {
    bottom.setRadius(r);
  }
}
